package com.zcx.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.ComponentScan;

/***
 * Constants包中放的是一个类,类中存放的是全局静态枚举
 * Filter中存放的是Zuul的四大核心过滤器 pre rout post error ;demo中有完整的说明以及详细步骤
 * rule中存放的是Zuul的配置类,用于自定义负载均衡策略
 *  */
@SpringBootApplication
@EnableZuulProxy
@EnableEurekaClient
//@ComponentScan(basePackages = {"com.zcx.test","com.zcx.zuul"})
//@MapperScan({"com.zcx.test","com.zcx.zuul"})
public class ZuulApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZuulApplication.class, args);
    }

}
